<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>我的评价</title>
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="stylesheet" href="../layui/css/layui.css">
    <link rel="stylesheet" href="../css/reset.css">
    <link rel="stylesheet" href="../css/CSS.css">
    <script src="../js/jquery-3.3.1.js"></script>
    <script src="../layui/layui.all.js"></script>
    <script src="../layui/layui.js"></script>
    <script src="../js/JS.js"></script>
</head>
<body style="background: #f5f5f5">
<header>
    <a href="javascript:history.back(-1)" class="back"><img src="../img/back.png" height="18px"></a>
    <div class="center title">我的评价</div>
</header>
<div class="my_evaluation_wrap">
    
</div>
</body>
</html>
<script>
    layui.use(['rate'], function(){
    var rate = layui.rate;    
    var uCount=localStorage.getItem("uCount");
    var uImg = localStorage.getItem("uImg");
    var uName = localStorage.getItem("uName");
    $.ajax({
        type:"POST",
        url:"/meiyou/showevaluate",
        data:{uCount:uCount},
        success:function(data){
            console.log(data);
            $.each(data,function(i,val){
               
            $('.my_evaluation_wrap').append("<ul class=\"my_evaluation\">" +
            "    <li class=\"clearfix\">" +
            "        <span class=\"fl\"><img src='"+uImg+"' alt=\"\"></span>" +
            "        <span class=\"fl\">"+uName+"</span>" +
            "    </li>" +
            "    <li style=\"font-size: 10px\">"+val.time+"</li>" +
            "    <li>"+val.content+"</li>" +
            "    <li class=\"clearfix\">" +
            "        <span class=\"fl\"><img src=\"../img/logo.png\" alt=\"\"></span>" +
            "        <span class=\"fl\">" +
            "            <p>"+val.eUBcount+"</p>" +
            "            <p class=\"star\"></p>" +
            "        </span>" +
            "    </li>" +
            "</ul>")


            });
         

            



        }
    })
        rate.render({
            elem: '.star',
            value: 5.0,
            half: true,
            text: true,
            readonly: true,
            setText: function(value){
                this.span.text(value+'分');
            }
        });

    });

</script>
